package com.ge.modules.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/** 用户token
 * Created by wuye on 2017/11/24.
 */
@TableName("tb_store_token")
public class TbStoreToken extends Model<TbStoreToken> {

    private static final long serialVersionUID = 1L;

//    @TableId("storeId")
    private Integer storeId;
    /**
     * token
     */
    private String token;
    /**
     * 过期时间
     */
    @TableField("expire_time")
    private Date expireTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.storeId;
    }

    @Override
    public String toString() {
        return "TbToken{" +
                ", storeId=" + storeId +
                ", token=" + token +
                ", expireTime=" + expireTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
